<div class="row-fluid">
    <div class="alert alert-<?=$res?>" style="padding: 50px; font-size: 14px;">
        <?=$msg?>

        <? if ($url): ?>
        <div style="padding-top: 25px;">
            <span id="__ts"><?=$seconds?></span> 秒后自动跳转，如果您的浏览器没有自动跳转，请 <a href="<?=$url?>">[点击这里]</a>

            <script type="text/javascript">
            function __g(id) {
                return document.getElementById ? document.getElementById(id) : null;
            }
            // 每秒倒计时
            function __timeDesc() {
                leftSecs--;
                if (leftSecs != undefined && leftSecs <= 0) {
                    location.href = '<?=$url?>';
                    clearInterval(st);
                    return false;
                }
                var tsObj = __g('__ts');
                if (tsObj) {
                    tsObj.innerHTML = leftSecs;
                }
            }
            var leftSecs = '<?=$seconds?>';
            if (leftSecs > 0) {
                var st = setInterval('__timeDesc()', 1000);
            }
            </script>

        </div>
        <? endif; ?>

        <div style="padding-top: 25px;">
            <a href="javascript:history.back();">[返回上一页]</a>
        </div>
    </div>
</div>